<?php



         $id = $_GET['id'];

         /*编写查询语句*/
         $sql = "update `test`.`admin` set `endble`=0 where `id`=$id";


         /*执行查询数据库语句，将刚刚提交的新闻数据查询出来用变量接住*/
         mysqli_query($link,$sql);

         /*判断影响行数*/
         $rows = mysqli_affected_rows($link);

         if($rows>0){echo "<script>alert('删除成功');location.href='index.php?c=admin&a=list&admin=1'</script>";}


?>